package com.itheima.file;

import java.io.File;

public class Demo03 {
    public static void main(String[] args) {
        File file= new File("D:\\aaa\\bbb");
       /* String[] list = file.list();
        for (String s : list) {
            System.out.println(s);
        }*/

        File[] files = file.listFiles();
        for (File f : files) {
            if (f.isDirectory()){
                f.delete();
            }

            if (f.isFile()){
                f.delete();
            }
        }

    }


}
